from alg import Solution
from gen import generate_test_cases

# 创建Solution类的实例
solution = Solution()

# 生成测试用例
test_cases = generate_test_cases()

# 遍历每个测试用例
for nums1, nums2, k in test_cases:
    # 显示输入
    print(f"输入：nums1 = {nums1}, nums2 = {nums2}, k = {k}")
    # 调用maxNumber方法得到输出
    result = solution.maxNumber(nums1, nums2, k)
    # 显示输出
    print(f"输出：{result}")
    print()